package com.wzbc.video.controller;

import com.wzbc.video.api.CommonResult;
import com.wzbc.video.req.IdReq;
import com.wzbc.video.req.SearchReq;
import com.wzbc.video.service.LessonMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/lesson/message")
public class LessonMessageController {
    @Autowired
    LessonMessageService lessonMessageService;
    @PostMapping("/getMessages")
    public CommonResult getMessages(@RequestBody IdReq req){
        return CommonResult.success(lessonMessageService.getMessages(req.getId()));
    }
}
